home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / VARfile.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  7.8 KB  |  341 lines

  1. object SyntAnal34: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Marked block'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clHighlightText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = []
  19.       BgColor = clHighlight
  20.       FormatType = ftColor
  21.     end
  22.     item
  23.       DisplayName = 'Symbol'
  24.       Font.Charset = DEFAULT_CHARSET
  25.       Font.Color = clMaroon
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Number'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = [fsBold]
  37.     end
  38.     item
  39.       DisplayName = 'String'
  40.       Font.Charset = DEFAULT_CHARSET
  41.       Font.Color = clBlue
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = []
  45.     end
  46.     item
  47.       DisplayName = 'Identifier'
  48.       Font.Charset = DEFAULT_CHARSET
  49.       Font.Color = clWindowText
  50.       Font.Height = -13
  51.       Font.Name = 'Courier New'
  52.       Font.Style = []
  53.     end
  54.     item
  55.       DisplayName = 'Reserved word'
  56.       Font.Charset = DEFAULT_CHARSET
  57.       Font.Color = clWindowText
  58.       Font.Height = -13
  59.       Font.Name = 'Courier New'
  60.       Font.Style = [fsBold]
  61.     end
  62.     item
  63.       DisplayName = 'Comment'
  64.       Font.Charset = DEFAULT_CHARSET
  65.       Font.Color = clRed
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = [fsBold]
  69.     end
  70.     item
  71.       DisplayName = 'Params'
  72.       Font.Charset = DEFAULT_CHARSET
  73.       Font.Color = clGreen
  74.       Font.Height = -13
  75.       Font.Name = 'Courier New'
  76.       Font.Style = [fsBold, fsItalic]
  77.     end>
  78.   TokenRules = <
  79.     item
  80.       DisplayName = 'Comment'
  81.       StyleName = 'Comment'
  82.       TokenType = 1
  83.       Expression = '--.*'
  84.       ColumnFrom = 0
  85.       ColumnTo = 0
  86.     end
  87.     item
  88.       DisplayName = 'Any name'
  89.       StyleName = 'Identifier'
  90.       TokenType = 2
  91.       Expression = '[a-z_]\w*'
  92.       ColumnFrom = 0
  93.       ColumnTo = 0
  94.     end
  95.     item
  96.       DisplayName = 'String'
  97.       StyleName = 'String'
  98.       TokenType = 4
  99.       Expression = '"(\\"|.)*?("|$)'
  100.       ColumnFrom = 0
  101.       ColumnTo = 0
  102.     end
  103.     item
  104.       DisplayName = 'Float'
  105.       StyleName = 'Number'
  106.       TokenType = 6
  107.       Expression = 
  108.         '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
  109.         'ut exp. dot is required'#13#10'\d+ \. \d+'
  110.       ColumnFrom = 0
  111.       ColumnTo = 0
  112.     end
  113.     item
  114.       DisplayName = 'Integer'
  115.       StyleName = 'Number'
  116.       TokenType = 5
  117.       Expression = '\d+'
  118.       ColumnFrom = 0
  119.       ColumnTo = 0
  120.     end
  121.     item
  122.       DisplayName = 'Symbol'
  123.       StyleName = 'Symbol'
  124.       TokenType = 3
  125.       Expression = '[/\+\-\*:=<>\(\)&/\|\^~\.,]+'
  126.       ColumnFrom = 0
  127.       ColumnTo = 0
  128.     end>
  129.   BlockRules = <
  130.     item
  131.       DisplayName = 'Key words'
  132.       StyleName = 'Reserved word'
  133.       BlockType = btTagDetect
  134.       ConditionList = <
  135.         item
  136.           TagList.Strings = (
  137.             'categories'
  138.             'datum'
  139.             'end'
  140.             'is'
  141.             'level'
  142.             'RECORD_TYPE'
  143.             'survey'
  144.             'title'
  145.             'weight')
  146.           TokenTypes = 4
  147.           IgnoreCase = True
  148.         end>
  149.       HighlightPos = cpAny
  150.       IgnoreAsParent = False
  151.     end
  152.     item
  153.       DisplayName = 'Var types'
  154.       StyleName = 'Reserved word'
  155.       BlockType = btTagDetect
  156.       ConditionList = <
  157.         item
  158.           TagList.Strings = (
  159.             'character'
  160.             'integer'
  161.             'LOGICAL'
  162.             'multiple'
  163.             'real'
  164.             'single')
  165.           TokenTypes = 4
  166.           IgnoreCase = True
  167.         end>
  168.       HighlightPos = cpAny
  169.       IgnoreAsParent = False
  170.     end
  171.     item
  172.       DisplayName = 'Param keywords'
  173.       StyleName = 'Params'
  174.       BlockType = btTagDetect
  175.       ConditionList = <
  176.         item
  177.           TagList.Strings = (
  178.             'classes'
  179.             'COMPUTE'
  180.             'datum'
  181.             'location'
  182.             'range'
  183.             'title'
  184.             'UNIVERSE'
  185.             'VARIABLE')
  186.           TokenTypes = 4
  187.           IgnoreCase = True
  188.         end>
  189.       HighlightPos = cpAny
  190.       IgnoreAsParent = False
  191.     end
  192.     item
  193.       DisplayName = 'Named begin'
  194.       ConditionList = <
  195.         item
  196.           TagList.Strings = (
  197.             'is')
  198.           TokenTypes = 4
  199.           IgnoreCase = True
  200.         end
  201.         item
  202.           TokenTypes = 4
  203.         end
  204.         item
  205.           TagList.Strings = (
  206.             'categories'
  207.             'character'
  208.             'integer'
  209.             'level'
  210.             'logical'
  211.             'real'
  212.             'single'
  213.             'survey')
  214.           TokenTypes = 4
  215.           IgnoreCase = True
  216.         end>
  217.       IdentIndex = 2
  218.       BlockOffset = 2
  219.       BlockEnd = 'Named end'
  220.       NameFmt = '%s2 %s1'
  221.       HighlightPos = cpAny
  222.       IgnoreAsParent = False
  223.     end
  224.     item
  225.       DisplayName = 'Named end'
  226.       BlockType = btRangeEnd
  227.       ConditionList = <
  228.         item
  229.           TagList.Strings = (
  230.             'categories'
  231.             'character'
  232.             'integer'
  233.             'level'
  234.             'logical'
  235.             'real'
  236.             'RECORD_TYPE'
  237.             'single'
  238.             'survey'
  239.             'weight')
  240.           TokenTypes = 4
  241.           IgnoreCase = True
  242.         end
  243.         item
  244.           TagList.Strings = (
  245.             'end')
  246.           TokenTypes = 4
  247.           IgnoreCase = True
  248.         end>
  249.       SameIdent = True
  250.       HighlightPos = cpAny
  251.       IgnoreAsParent = False
  252.     end
  253.     item
  254.       DisplayName = 'Unnamed begin'
  255.       ConditionList = <
  256.         item
  257.           TagList.Strings = (
  258.             'is')
  259.           TokenTypes = 4
  260.           IgnoreCase = True
  261.         end
  262.         item
  263.           TagList.Strings = (
  264.             'categories'
  265.             'record_type'
  266.             'weight')
  267.           TokenTypes = 4
  268.           IgnoreCase = True
  269.         end>
  270.       IdentIndex = 1
  271.       BlockOffset = 1
  272.       BlockEnd = 'Named end'
  273.       HighlightPos = cpAny
  274.       IgnoreAsParent = False
  275.     end
  276.     item
  277.       DisplayName = 'Category'
  278.       ConditionList = <
  279.         item
  280.           TokenTypes = 16
  281.         end
  282.         item
  283.           TagList.Strings = (
  284.             'is')
  285.           TokenTypes = 4
  286.           IgnoreCase = True
  287.         end
  288.         item
  289.           TagList.Strings = (
  290.             'datum')
  291.           TokenTypes = 4
  292.           IgnoreCase = True
  293.         end>
  294.       IdentIndex = 2
  295.       BlockOffset = 2
  296.       BlockEnd = 'Category end'
  297.       NameFmt = '%s0'
  298.       HighlightPos = cpAny
  299.       IgnoreAsParent = False
  300.     end
  301.     item
  302.       DisplayName = 'Category end'
  303.       BlockType = btRangeEnd
  304.       ConditionList = <
  305.         item
  306.           TokenTypes = 16
  307.         end
  308.         item
  309.           TagList.Strings = (
  310.             'is')
  311.           TokenTypes = 4
  312.           IgnoreCase = True
  313.         end
  314.         item
  315.           TagList.Strings = (
  316.             'datum')
  317.           TokenTypes = 4
  318.           IgnoreCase = True
  319.         end>
  320.       HighlightPos = cpAny
  321.       IgnoreAsParent = False
  322.     end>
  323.   CodeTemplates = <>
  324.   SubAnalyzers = <>
  325.   TokenTypeNames.Strings = (
  326.     'Unknown'
  327.     'Comment'
  328.     'Identifier'
  329.     'Symbol'
  330.     'String'
  331.     'Integer const'
  332.     'Float const'
  333.     'Hex const'
  334.     'Char const'
  335.     'Preprocessor')
  336.   MarkedBlockStyle = 'Marked block'
  337.   DefaultStyleName = 'Default'
  338.   Extentions = 'var'
  339.   LexerName = 'VAR file'
  340. end
  341.